#include <WinTen.h>
#include <Windows.h>
#include <ClipApi.h>

//----------------------------------------------------------------------------//

CLIPPER TEXTOUT()
{
   _retl( TextOut( ( HDC ) _parni( 1 ), _parni( 3 ), _parni( 2 ),
                   ( LPSTR ) _parc( 4 ), _parclen( 4 ) ) );
}

//----------------------------------------------------------------------------//

CLIPPER extTEXTOUT()
{
   RECT rct;

   rct.top    = _parni( 4, 1 );
   rct.left   = _parni( 4, 2 );
   rct.bottom = _parni( 4, 3 );
   rct.right  = _parni( 4, 4 );

   _retl( ExtTextOut( ( HDC ) _parni( 1 ), _parni( 3 ), _parni( 2 ),
          ETO_OPAQUE | ETO_CLIPPED, &rct, _parc( 5 ), _parclen( 5 ), 0 ) );
}

//----------------------------------------------------------------------------//
